﻿@{
    
    //var controller = HttpContext.Current.Request.RequestContext.RouteData.Values["Controller"].ToString();
   
    
    string layout = "";

    if (User.IsInRole("Admin") == true)
    {
        layout = "~/Views/Shared/_AdminLayout.cshtml";
    }
    else if (User.IsInRole("HRManager") == true)
    {
        layout = "~/Views/Shared/_HRLayout.cshtml";
    }
        
    else
    {
        layout = "~/Views/Shared/_Layout.cshtml";
    }
    
    Layout = layout;
}